package com.shidaimanong.demo.date;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * 学编程，关注：十代码农
 * 抖音、快手、B站、西瓜视频、今日头条
 */
public class DateDemo1 {
    public static void main(String args[]) {
        Date date = new Date();
        String strDateFormat = "yyyy年MM月dd日";
        SimpleDateFormat sdf = new SimpleDateFormat(strDateFormat);
        System.out.println(sdf.format(date));

    }
}